package com.base.model.admin_api

import com.yfree.model.YModel

class Model_AdminAPI : YModel {
    var userList = listOf<String>()
    var sex = 0

    constructor(userList: List<String>, sex: Int) : super() {
        this.userList = userList
        this.sex = sex
    }
}

class Model_AdminAPI_Admin : YModel() {
    lateinit var uid: String
    lateinit var nickname: String
    lateinit var login_time: String
    lateinit var sign_password: String
    lateinit var sign_token: String
    lateinit var menuModels: List<Map<String, Any>>
}

class Model_AdminAPI_Shiro : YModel {
    var username = ""
    var password = ""
    var realname = ""
    var roles = arrayOf<String>()

    constructor(username: String, password: String, realname: String, roles: Array<String>) : super() {
        this.username = username
        this.password = password
        this.realname = realname
        this.roles = roles
    }
}
